<template>
	<view>
		<view class="" v-for="item in list" :key="item.id" style="display: flex;flex-flow: column;">
			<view class="" style="display: flex;line-height: 50rpx;">
				<uni-icons type="checkbox" size="30" ></uni-icons>
				<view class="" style="font-size: 18rpx;">{{item.createTime}}</view>
			</view>
			<view class="" style="margin-left: 60rpx;">
				<view class="" >{{item.userName}}登录了考试系统</view>
			</view>
		</view>
	</view>
</template>

<script>
	import http from '../../http.js'
	export default {
		data() {
			return {
				list: [{
					id: "",
					userId: 1, //用户id
					userName: "", //用户名
					realName: "", //用户真实姓名
					content: "", //动态内容
					createTime: "" //创建时间
				}]
			}
		},
		methods: {
			getList() {
				http({
					url: '/api/student/user/log',
					method: 'POST'
				}).then(res => {
					console.log(res);
					if (res.code === 1) {
						message: '成功'
						this.list = res.response
					}
				})
			}
		},
		onLoad() {
			this.getList()
		}
	}
</script>

<style lang="scss">
*{
	margin: 0 ;
	padding: 0 ;
}
</style>